﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dln.Common.Helper;
using Dln.Model;

public partial class shexiangTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //210102016,260000021 - b
        var model =
            SqlHelper.Context.FromSql(
                "select * from[Dln].[dbo].[PAYITEMCODE] where ITEMID in ('2101','210102013','250203062','250203075','250307028','2507','33','330204019','330403007','330606015','330607001','330607002','330607002','330607003','330802038','330802040','330804012','331400019','33-e','360100024')")
                .ToList<PAYITEMCODE>();
        foreach (var item in model)
        {
            item.PYCODE = Bright.Library.BO.Pub.BString.StrGetChinesePYCode(item.ITEMNAME.TrimEnd());
            var count = SqlHelper.Context.Update<PAYITEMCODE>(item);
        }
    }
}